Repository navigation
fix(parser): recognize complete PDF table tags - #5
Closed
Harsh23Kashyap wants to merge 568 commits into
Closed
Harsh23Kashyap wants to merge 568 commits into
Harsh23Kashyap wants to merge 568 commits into
Conversation
…ers an API request to fetch the latest data. (infiniflow#19801)
### Summary Fix citation of agentic rag
…ons (infiniflow#19800) Fix DeepDoc OOM — disabled ONNX CPU memory arena in both session paths so idle sessions don't hoard native memory. Peak RSS on a 260-page PDF: ~20 GB (OOM) → ~8 GB.
…flow#19809) from infiniflow#15279 Signed-off-by: Jin Hai <haijin.chn@gmail.com>
…nfiniflow#19748) Add Cheaper Inference as OpenAI-compatible provider --------- Signed-off-by: aiapienthusiast <aiapienthusiast@users.noreply.github.com>
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
### Summary Refine citation for coverage queries
…a chunker, and a chunker cannot be followed by another chunker. (infiniflow#19833)
…er flow into the drivers (infiniflow#19823)
### Summary Adds an Azerbaijani (az) translation. New file web/src/locales/az.ts: 3181 strings, all filled in. web/src/constants/common.ts: added Az to LanguageAbbreviation and Azərbaycanca to LanguageAbbreviationMap. web/src/locales/config.ts: added az to languageImports. Co-authored-by: Jamal Kamaladdin <jamalkamaladdin@users.noreply.github.com>
Resolve the latest release through GitHub’s `releases/latest` redirect instead of the rate-limited REST API. Explicitly specified versions continue to work as before.
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
…iflow#20158) Support rerrank for searchbot; add highlight for searchbot.
…kup (infiniflow#20143) The three PDF parsers (OpenDataLoader, TCADP, SoMark) hand every `type=="table"` block back with `doc_type_kwd: "table"` and `layout: "table"` even when the text payload is concatenated cell/row bytes rather than real HTML markup. The QA chunker then walks the markup looking for rows, finds none, and silently returns zero QA pairs — a successful parse that produced nothing. Introduce `pdfTextCarriesTableMarkup` (looks for `<table` or `<tr`) and `pdfDowngradeLabelIfNoTableMarkup` (rewrites an item from `("table", "table")` to `("text", "text")` when the markup is absent, no-op otherwise). Apply the helper at the three `type=="table"` emission sites so the producer-side label now matches the actual payload the consumer will see. Mirrors the consumer-side walker PR infiniflow#20080 added, but at the producer so the label is truthful end-to-end.
Helper-level: TestPDFTextCarriesTableMarkup pins the markup-presence predicate against seven inputs (empty, plain text, full HTML, row-tag-only, uppercase tag, attributes, trailing whitespace) and TestPDFDowngradeLabelIfNoTableMarkup pins the per-item rewrite through five shapes (with markup / no markup / non-table / image / nil). Parser-level: each of the three parsers gets two cases — the downgrade path (cells / row-concatenated / content fallback, all without markup, all expected to come back labelled `text`) and the positive path (real `<table>` markup, expected to come back labelled `table`). Together they pin the producer-side fix for issue infiniflow#20143 and prevent the three parsers from drifting apart on this label again.
Owner
Author
|
duplicate - these commits are already the head of upstream PR infiniflow#20181; closing the fork-side PR. branch stays. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recognize complete PDF table tags case-insensitively and add regression coverage. A standalone Go regex harness passed six cases twice; gofmt and whitespace checks passed. Full parser tests could not compile because
office_oxide.his missing.